package com.wjh.kt_vod.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wjh.kt_vod.model.vod.Course;
import com.wjh.kt_vod.vo.vod.CourseFormVo;
import com.wjh.kt_vod.vo.vod.CoursePublishVo;
import com.wjh.kt_vod.vo.vod.CourseQueryVo;

import java.util.Map;

/**
 *
 */
public interface CourseService extends IService<Course> {

    Map<String, Object> findPageCourse(Page<Course> coursePage, CourseQueryVo courseQueryVo);

    public Long saveCourseInfo(CourseFormVo courseFormVo);

    CourseFormVo getCourseFormVoById(Long id);

    //根据id修改课程信息
    void updateCourseById(CourseFormVo courseFormVo);

    CoursePublishVo getCoursePublishVo(Long id);

    void publishCourse(Long id);

    void removeCourseById(Long id);
}
